import request from "@/request/request.js";
import qs from "qs";
// 精品推荐
export const JingPinAPI = () => request.get("/products/recommend")
// 热门兑换
export const ReMenAPI = () => request.get("/products/hot")
// 获取验证码
export const sendSmsAPI = (params) => request.post("/sendSMS", qs.stringify(params))
// 手机号码 登录 正常
export const phoneReginAPI = (params) => request.post("/phoneRegin", qs.stringify(params))
// 微信扫码登录 
export const wechatUsersAPI = (params) => request.post("/wechatUsers/PCLogin", qs.stringify(params))
// 手机绑定微信 登录请求
export const BangDingAPI = (params) => request.post("/wechatUsers/binding", qs.stringify(params))

// 获取用户信息
export const userProfilesAPI = () => request.get("/shop/userProfiles")
// 商品详情页
export const GoodsDetailsAPI = (id) => request.get(`/products/${id}`)

// 加入购物车 
export const CartsAddAPI = (params) => request.post("/shop/carts/add", qs.stringify(params))
// 全部商品 
export const GoodsSearchAPI = (params) => request.get("/products", { params })


